package com.pojo;

import java.math.BigDecimal;

/**
 * @Author hjb
 * @Version 1.0
 * @Contact 1754729389@qq.com
 */
public class CartItem {

    private Integer id;
    private String name;
    private String code;
    private BigDecimal deposit;
    private BigDecimal basicPrice;

    public CartItem() {
    }

    public CartItem(Integer id, String name, String code, BigDecimal deposit, BigDecimal basicPrice) {
        this.id = id;
        this.name = name;
        this.code = code;
        this.deposit = deposit;
        this.basicPrice = basicPrice;
    }

    public CartItem(String name, String code, BigDecimal deposit, BigDecimal basicPrice) {
        this.name = name;
        this.code = code;
        this.deposit = deposit;
        this.basicPrice = basicPrice;
    }

    @Override
    public String toString() {
        return "CartItem{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", code='" + code + '\'' +
                ", deposit=" + deposit +
                ", basicPrice=" + basicPrice +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public BigDecimal getDeposit() {
        return deposit;
    }

    public void setDeposit(BigDecimal deposit) {
        this.deposit = deposit;
    }

    public BigDecimal getBasicPrice() {
        return basicPrice;
    }

    public void setBasicPrice(BigDecimal basicPrice) {
        this.basicPrice = basicPrice;
    }
}
